package com.movitech.mobile.ddzy.bpm.feignclient;

import com.movitech.mobile.ddzy.bpm.vo.Users;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("${api.feign.auth.service.name}")
public interface MbsDataAuthClient {

//	@RequestMapping(method = RequestMethod.GET, value = "/user/getUserByToken")
//	String getUserByToken(@RequestParam(value = "token") String token);

	@RequestMapping(method = RequestMethod.GET, value = "/redis/validationToken")
	String getUserByToken(@RequestParam(value = "token") String token);

	@RequestMapping(method = RequestMethod.POST, value = "/api/user/v1/selUser")
	String getUser(@RequestBody Users user);

	@RequestMapping(method = RequestMethod.GET, value = "/user/getUserAndAuthByToken")
	String getUserAndAuthByToken(@RequestParam(value = "token") String token,@RequestParam(value = "authAppUUIDQX") String authAppUUIDQX);

//	@RequestMapping(method = RequestMethod.GET, value = "/auth/getauthButton")
//	String getAuthButton(@RequestParam(value = "appUUID") String appUUID, @RequestParam(value = "employeeId") String employeeId);

	@RequestMapping(method = RequestMethod.GET, value = "/ctrContent/getCtrContentByTime")
	String getCtrContentByTime(@RequestParam(value = "startTime") String startTime);

	@RequestMapping(method = RequestMethod.GET, value = "/ctrContent/checkLicenseNo")
	String checkLicenseNo(@RequestParam(value = "LicenseNo") String licenseNo);

	@RequestMapping(method = RequestMethod.POST, value = "/ctrContent/strategicAgreement")
	String strategicAgreement(@RequestParam(value = "startTime") String startTime,@RequestParam(value = "endTime") String endTime);

	@RequestMapping(method = RequestMethod.GET, value = "/sourcing/selectSroucingIsPendingItem")
	String querySourcingStatus(@RequestParam(value = "srCode") String srCode);

	@RequestMapping(method = RequestMethod.GET, value = "/auth-manage/v2/getdataauth")
	String getDataAuth( @RequestParam(value = "employeeId") String employeeId);


	@RequestMapping(method = RequestMethod.GET, value = "/auth/getauthButton")
	String getAuthButton(@RequestParam(value = "appUUID") String appUUID, @RequestHeader(value = "token") String token);

}
